#pragma once
#include "IView2D.h"
#include "../game/Weather.h"
#include "IRender.h"
#include "../sound/SoundSource.h"
#include "Animation.h"
/**
===============================
Visual representation of the weather 
effects
===============================
*/
class WeatherView : public IView2D
{
public:
    WeatherView(void);

    /** Update the weather effects */
    void Update(long dt);
    /** Render the weather effects */
    void Render( IRender* r, ICamera* cam );

    /** Set the weather module */
    void Set(Weather* s) { m_weather = s; };
private:
    /** Randomize Lightning Effect */
    void Randomize(IRender *f);
    Weather*     m_weather;

    /*---------------------------
        Sounds
    ----------------------------*/

    SoundSource*    m_sRain;
    SoundSource*    m_sThunder1;
    SoundSource*    m_sThunder2;

    Image  m_iRain1[4]; 
    Animation m_rainAnim;
    //Image* m_iRain2;
    //Image* m_iRain3;
    //Image* m_iRain4;

public:
    virtual ~WeatherView(void);
};
